#include<iostream>
using namespace std;
int main()
{
	char c;
	cin >> c;
	cout << (int)c;
	//printf("%d\n",(int)getchar());
	return 0;
}